package com.apartmentManage.Dao;

import com.apartmentManage.entity.Apartment;
import com.apartmentManage.entity.ApartmentTutor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApartmentDao {
    /*查询*/
    List<Apartment> getAll();
    /*条件模糊查询*/
    List<Apartment> getByRequirement(@Param("apartment") Apartment apartment);
    /*条件查询*/
    Apartment getByNo(@Param("apartmentNo") Integer apartmentNo);
//    /*查询所有的No*/
    List<Apartment> getAllNo();
    /*添加*/
    int add(@Param("apartment") Apartment apartment);
    /*删除*/
    int delete(@Param("apartmentNo") Integer apartmentNo);
    /*修改*/
    int update(@Param("apartment") Apartment apartment);
}
